home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12186 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: news.spies.com!usenet
  2. From: Erik Max Francis <max@alcyone.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Persistence support
  5. Date: Thu, 28 Mar 1996 20:23:05 -0800
  6. Organization: Alcyone Systems
  7. Message-ID: <315B65A9.6DEEFCBB@alcyone.com>
  8. References: <iefraue6qkn.fsf@wits-end.eecs.umich.edu>
  9. NNTP-Posting-Host: newton.alcyone.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.01 (X11; I; Linux 1.2.13 i486)
  14.  
  15. Niranjan Ramakrishnan wrote:
  16.  
  17. > Does any one know of any libraries etc that might exist out there to
  18. > support persistence in C. My problem is I have an array of structures that
  19. > contain pointers in them which I need to write to a file and retrieve later.
  20. > However fwrite and fread won't work since it will just write the pointer
  21. > value and not the actual value contained in the location pointed to. I
  22. > heard that this is one of the big issues in persistence. Can some one
  23. > help me?
  24.  
  25. You have to use a file format which is intelligent about what things are.  You
  26. can't use pointers; you have to refer to the other objects in some other way.
  27.  
  28. -- 
  29. Erik Max Francis &tSftDotIotE && http://www.alcyone.com/max && max@alcyone.com
  30. San Jose, California, U.S.A. && 37 20 07 N 121 53 38 W && the 4th R is respect
  31. H.3`S,3,P,3$S,#$Q,C`Q,3,P,3$S,#$Q,3`Q,3,P,C$Q,#(Q.#`-"C`- && 1love && folasade
  32. Omnia quia sunt, lumina sunt. && Dominion, GIGO, GOOGOL, Omega, Psi, Strategem
  33. "Out from his breast/his soul went to seek/the doom of the just." -- _Beowulf_
  34.